package com.ocom.common.request.payhandle;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FeeRefundRequest {
	/**
	 companyId	单位编号
	 feeItemId	项目编号
	 pId	人员编号
	 origTradeNo	原交易号
	 refundAmount	退款金额
	 tradeNo	退费交易号
	 */
	@Min(1L)
	@NotNull(message = "companyId 不能为空")
	Long companyId;

	@NotNull(message = "feeItemId 不能为空")
	Integer feeItemId;

	@JsonProperty("pId")
	@NotNull(message = "pId 不能为空")
	Integer pId;

	@Min(0)
	@NotNull(message = "refundAmount 不能为空")
	Integer refundAmount;

	@NotBlank(message = "origTradeNo 不能为空")
	String origTradeNo;

	@NotBlank(message = "tradeNo 不能为空")
	String tradeNo;

	boolean check = true;
}
